{% spaceless %}
{% load i18n %}
<ol class="submission__answer__display__content">
    {% for part in answer.parts %}
        <li class="submission__answer__part">
            <div class="submission__answer__part__text">
                <h5 class="submission__answer__part__text__title">{% trans "The question for this section" %}</h5>
            </div>
            <article class="submission__answer__part__prompt">
                <div class="submission__answer__part__prompt__value">
                    {{ part.prompt.description|linebreaks }}
                </div>
            </article>
            {% if part.text %}
            <div class="submission__answer__part__text">
                <h5 class="submission__answer__part__text__title">{{ answer_text_label }}</h5>
                <div class="submission__answer__part__text__value">
                    {{ part.text|linebreaks }}
                </div>
            </div>
            {% endif %}
        </li>
    {% endfor %}
</ol>
{% endspaceless %}
